pre {
  margin: 6px 0 !important;
  padding-top: 0 !important;
  /* This is a trick to get all images the same width */
  display: table !important;
  width: 280px;
  box-sizing: border-box;
}

code {
  width: 280px;
  display: block;
  overflow-x: auto;
}
/* 滚动条样式 */
code::-webkit-scrollbar {
  width: 4px; /*  设置纵轴（y轴）轴滚动条 */
  height: 4px; /*  设置横轴（x轴）轴滚动条 */
}
/* 滚动条滑块（里面小方块） */
code::-webkit-scrollbar-thumb {
  border-radius: 10px;
  box-shadow: inset 0 0 5px rgba(220, 220, 220, 0.2);
  background: rgba(151, 151, 151, 0.9);
  border-radius: 2px;
}
/* 滚动条轨道 */
code::-webkit-scrollbar-track {
  border-radius: 0;
  box-shadow: inset 0 0 5px rgba(233, 233, 233, 0.2);
  background: rgb(210, 210, 210);
  border-radius: 2px;
}
.bot-container {
  display: none;
  width: 400px;
  padding-bottom: 10px;
  background-color: white;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  border-radius: 15px;
  position: fixed;
  right: 10px;
  top: 10%;
  z-index: 99;
}
.bot-img {
  position: fixed;
  top: 40%;
  right: 0px;
  z-index: 99;
  transform: translate(-50%, 0);
  cursor: pointer;
}
.command-list {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  padding: 6px;
  border-bottom: 1px #eeeeee solid;
}
.command-list .command-item {
  padding: 2px 4px;
  margin: 2px;
  font-size: 12px;
  background: #266cd6;
  color: #fff;
  cursor: pointer;
}
.bot-response {
  font-size: 17px;
  line-height: 24px;
  border-radius: 20px;
  word-wrap: break-word;
  max-width: fit-content;
  padding: 15px 17px;
  background: rgb(255, 255, 255);
  color: rgb(0, 0, 0);
  margin-top: 10px;
}

.text[text-first] {
  border-bottom-left-radius: 5px;
  margin-top: 0;
}

.text[text-middle] {
  border-bottom-left-radius: 5px;
  border-top-left-radius: 5px;
}

.text[text-last] {
  border-top-left-radius: 5px;
}

.massage[data-user="true"] {
  display: flex;
  justify-content: flex-end;
}

.msgCaption {
  padding: 0 25px 10px !important;
  padding-top: 10px !important;
}

.user-response {
  background: rgb(0, 102, 255);
  color: rgb(255, 255, 255);
  font-size: 17px;
  line-height: 24px;
  border-radius: 20px;
  max-width: 250px;
  padding: 15px 17px;
  border-bottom-right-radius: 5px;
  word-break: break-all;
  white-space: normal;
}

.massage {
  padding: 0 25px 0px;
}

.massage img {
  width: 100%;
  height: 217px;
  background: white;
  border-radius: 10px;
  margin-bottom: 6px;
}

.captionBot img {
  width: 18px;
  height: 18px;
  border-radius: 100%;
}
.bot-close {
  position: absolute;
  z-index: 100;
  top: 10px;
  color: #898989;
  right: 20px;
  font-size: 26px;
  cursor: pointer;
}
.captionBot {
  display: flex;
  justify-content: space-between;
  padding: 0 25px;
  width: 70px;
  font-size: 14px;
  color: rgb(24, 25, 25);
}

/* a {
  text-decoration: none;
}

.by a {
  font-size: 14px;
  font-weight: 600;
  margin-left: 3px;
} */

.by {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 30px;
  border-top: 1px solid rgb(238, 238, 238);
}

.by span {
  color: rgb(155, 166, 178);
  font-size: 12px;
  font-weight: 600;
}

.InputMSG {
  outline: none;
  border: none;
  width: 100%;
  padding-left: 15px;
  font-size: 1.1rem;
}

.InputMSG::placeholder {
  font-size: 1.1rem;
  color: rgb(155, 166, 178);
}

.BoxSentMSG {
  display: flex;
  align-items: center;
  width: 100%;
  height: 50px;
}

.send-icon {
  display: flex;
  background-color: white;
  width: 26px;
  height: 26px;
  margin: 0 13px;
  cursor: pointer;
}

.ContentChat {
  background: rgb(234, 238, 243);
  width: 100%;
  height: 400px;
  overflow-y: scroll;
}

.ContentChat::before {
  content: "";
  display: block;
  height: 20px;
  width: 100%;
}

.ContentChat::after {
  content: "";
  display: block;
  height: 20px;
  width: 100%;
}

.AvatarBot {
  display: grid;
  position: relative;
  justify-content: center;
  align-items: center;
}

.AvatarBot:after {
  content: "";
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 100%;
  border: 1px solid rgb(255, 255, 255);
  background: rgb(105, 222, 64);
  position: absolute;
  bottom: 1px;
  right: 1px;
}

.InfoBot {
  margin-left: 17px;
}

.status {
  color: rgb(155, 166, 179);
}

.TitleBot {
  font-size: 24px;
  font-weight: 600;
  white-space: nowrap;
}

.AvatarBot img {
  width: 50px;
  height: 50px;
}

.bot-top {
  display: flex;
  align-items: center;
  height: 90px;
  width: 100%;
  padding-left: 13px;
  -webkit-box-shadow: 0 9.5px 12.7px 0 rgba(0, 0, 0, 0.05);
  box-shadow: 0 9.5px 12.7px 0 rgba(0, 0, 0, 0.05);
}

.InputMSG:valid ~ .send-icon svg path {
  fill: #0066ff;
}

.none {
  display: none;
}

@media only screen and (max-width: 500px) {
  .bot-container {
    width: 100%;
    height: 100%;
    border-radius: 0px;
  }
  body {
    display: block;
    height: calc(100vh - 170px);
    overflow: auto;
  }
  .ContentChat {
    height: 100%;
    margin-top: 90px;
    margin-bottom: 80px;
    overflow: auto;
  }
  .top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: white;
  }
  .BoxSentMSG {
    position: fixed;
    bottom: 30px;
    left: 0;
    right: 0;
    background-color: white;
  }
  .by {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: white;
  }
}
